Add Python project base template#3
Merged
Merged
Conversation
README: - Lead with VS Code + Docker as the only prerequisites - Step-by-step: Use Template → clone → Reopen in Container → pytest - Remove local uv install instructions as primary path - Explain what the editor does automatically (format on save, type errors) - Cover adding dependencies, adapting for a new project, and CI checks - Production Docker usage moved to its own section, not buried in Quick Start CLAUDE.md: - Clarify the dev-container-first design intent - Document the two-step builder pattern and why it exists - Note that pythonpath = ["src"] makes tests work without editable install - Explain why bandit is absent from CI (CodeQL covers SAST) https://claude.ai/code/session_01TiXyp1vCmxNP2ewP4s1TGH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete Python project base template, reviewed and CI green.
What's included
devfor dev containers,prodfor deployment), two-layer builder pattern for correct hatchling builds and optimal layer cachingdevDockerfile target; non-rootdevuser, named.venvvolume, auto-syncs on create/test,/lint,/security,/buildproject commandsReview fixes applied
pythonpath = ["src"]added so barepytestworks without editable installaddopts— explicit in CI only"off"— defers to mypy extension (was"basic", inconsistent with strict mypy)scope=dev/scope=prod)enable-cache: trueon allsetup-uvstepstargetskey removed from[tool.bandit]devcompose service removed (was a pytest runner with a misleading name)devuseradded, redundant build-timeuv syncremovedhttps://claude.ai/code/session_01TiXyp1vCmxNP2ewP4s1TGH
Generated by Claude Code